package com.hkyl.hospital.service;

import com.hkyl.hospital.domain.ResultVo;
import com.hkyl.hospital.entity.Permission;

import java.util.List;

/**
 * @author hyh
 * @date 2023/07/10 12:04:27
 */
public interface PermissionService {
    List<Permission> listPermission();

    List<Permission> listByRoleId(Integer roleId);

    Integer save(Permission permission);

    Integer update(Permission permission);

    Integer remove(Integer permissionId);

    Permission getRoot();

    Permission getOne(Integer permissionId);

    List<Integer> getPermissionByRoleId(Integer integer);

    Integer distributePermissions(Integer roleId, List<Integer> permissionIds);
}
